package leecode

func trainingPlanLCR178(actions []int) int {
	hashMap := make(map[int]int)
	for i := 0; i < len(actions); i++ {
		hashMap[actions[i]]++
	}
	for key, value := range hashMap {
		if value == 1 {
			return key
		}
	}
	return -1
}
